toolitem: fix a copy/paste typo
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 30 Dec 2015 00:33:34 +0000 (16:33 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 30 Dec 2015 00:33:53 +0000 (16:33 -0800)
gtk/gtktoolitem.c

index dab39e1bc31e05046a6762554ffb54a0546489d9..af1857de263a87a421c5cb50bdca55f2a9f37e9d 100644 (file)
@@ -707,7 +707,7 @@ gtk_tool_item_get_ellipsize_mode (GtkToolItem *tool_item)
 {
   GtkWidget *parent;
   
-  g_return_val_if_fail (GTK_IS_TOOL_ITEM (tool_item), GTK_ORIENTATION_HORIZONTAL);
+  g_return_val_if_fail (GTK_IS_TOOL_ITEM (tool_item), PANGO_ELLIPSIZE_NONE);
 
   parent = gtk_widget_get_parent (GTK_WIDGET (tool_item));
   if (!parent || !GTK_IS_TOOL_SHELL (parent))